﻿using System;
using System.Net;
using System.Windows;
using System.Windows.Controls;
using System.Windows.Documents;
using System.Windows.Ink;
using System.Windows.Input;
using System.Windows.Media;
using System.Windows.Media.Animation;
using System.Windows.Shapes;
using Microsoft.Practices.Prism.Modularity;
using Microsoft.Practices.Prism.Regions;
using Microsoft.Practices.Unity;
using DIST.LR.ZHJG.Infrastructure;

namespace DIST.LR.ZHJG.Pgybc
{
    public class ZbglModule : IModule
    {
        private IRegionManager _regionManager;
        private IUnityContainer _container;

        public ZbglModule(IUnityContainer container, IRegionManager regionManager)
        {
            _container = container;
            _regionManager = regionManager;
        }

        public void Initialize()
        {
            _regionManager.RegisterViewWithRegion(RegionNames.ZbglTreeRegion,typeof(Zbgl_Tree));
            _container.RegisterType<object,Zbgl_Tree>(ViewNames.Zbgl_Tree);

            _regionManager.RegisterViewWithRegion(RegionNames.ZbglViewRegion,typeof(Zbgl_View));
            _container.RegisterType<object,Zbgl_View>(ViewNames.Zbgl_View);

            _regionManager.RegisterViewWithRegion(RegionNames.ZbglViewRegion, typeof(Zbgl_KPI));
            _container.RegisterType<object, Zbgl_KPI>(ViewNames.Zbgl_Kpi);

            _regionManager.RegisterViewWithRegion(RegionNames.ZbglViewRegion, typeof(Zbgl_KPITYPE));
            _container.RegisterType<object, Zbgl_KPITYPE>(ViewNames.Zbgl_KpiType);

            _regionManager.RegisterViewWithRegion(RegionNames.ZbglViewRegion, typeof(Zbgl_KPIORIGIN));
            _container.RegisterType<object, Zbgl_KPIORIGIN>(ViewNames.Zbgl_KpiOrigin);

            _regionManager.RegisterViewWithRegion(RegionNames.ZbglViewRegion, typeof(Zbgl_KPIVALUE));
            _container.RegisterType<object, Zbgl_KPIVALUE>(ViewNames.Zbgl_KpiValue);



            _regionManager.RegisterViewWithRegion(RegionNames.ZbglViewRegion, typeof(user_Manager));
            _container.RegisterType<object, user_Manager>(ViewNames.user_Manager);
        }
    }
}
